package fatworm.parser.syntree;
/**
 *	syntax tree node, drop tables
 */
public class DropTableNode extends QueryNode{
	public java.util.LinkedList<String> dropList;
	
	public DropTableNode( java.util.LinkedList<String> dropList ){
		this.dropList = dropList;
 	}
	public String toString(){
		String drop = "";
		for( java.util.Iterator<String> i = dropList.iterator() ; i.hasNext();){
			drop += i.next();
			if( i.hasNext() ) drop += ",";
		}
		return "DROP TABLE " + drop;
	}
	public void accept(IQueryVisitor visitor) {
		visitor.visit( this );	
	}
}
